import request from '@/utils/request'

// 查询报警规则变更记录列表
export function listApplyChangeRule(query) {
  return request({
    url: '/alarm/applyChangeRule/list',
    method: 'get',
    params: query
  })
}

// 查询报警规则变更记录详细
export function getApplyChangeRule(id) {
  return request({
    url: '/alarm/applyChangeRule/' + id,
    method: 'get'
  })
}

// 新增报警规则变更记录
export function addApplyChangeRule(data) {
  return request({
    url: '/alarm/applyChangeRule',
    method: 'post',
    data: data
  })
}

// 修改报警规则变更记录
export function updateApplyChangeRule(data) {
  return request({
    url: '/alarm/applyChangeRule',
    method: 'put',
    data: data
  })
}

// 删除报警规则变更记录
export function delApplyChangeRule(id) {
  return request({
    url: '/alarm/applyChangeRule/' + id,
    method: 'delete'
  })
}
